package com.hdoit.ares.logical.acc.service.impl;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.acc.dao.IAccountDetailDao;
import com.hdoit.ares.logical.acc.model.AccountDetail;
import com.hdoit.ares.logical.acc.service.IAccountDetailService;
import com.hdoit.ares.logical.viewmodel.acc.AccountDetailSearch;
import com.hdoit.ares.logical.viewmodel.acc.FindAccountDetail;
import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      caochengmeng
 * @email       
 * @createtime  2017年11月27日 09:20:04
 * @comment
 */
@Component
public class AccountDetailServiceImpl extends SuperService<AccountDetail> implements IAccountDetailService{
	
	private IAccountDetailDao accountDetailDao;
	
	public IAccountDetailDao getAccountDetailDao() {
		return accountDetailDao;
	}
	
	@Resource
	public void setAccountDetailDao(IAccountDetailDao accountDetailDao) {
		this.accountDetailDao = accountDetailDao;
	}


	@Override
	public List<AccountDetail> queryBalanceList(String custId) {
		
		return accountDetailDao.queryBalanceList(custId);
	}

	@Override
	public AccountDetail querySumIncomeMoney(FindAccountDetail findAccountDetail,String id) {
		return accountDetailDao.querySumIncomeMoney(findAccountDetail,id);
	}

	@Override
	public AccountDetail querySumExpendMoney(FindAccountDetail findAccountDetail,String id) {
		return accountDetailDao.querySumExpendMoney(findAccountDetail,id);
	}

	@Override
	public List<AccountDetail> queryList(AccountDetailSearch accountDetailSearch, PagerModel pagerModel) {
		return accountDetailDao.queryList(accountDetailSearch,pagerModel);
	}

	@Override
	public List<AccountDetail> queryAccountDetail(FindAccountDetail findAccountDetail, String custId) {
		
		return accountDetailDao.queryAccountDetail(findAccountDetail, custId);
	}

	@Override
	public AccountDetail queryAccount(String id) {
		
		return accountDetailDao.queryAccount(id);
	}

	@Override
	public AccountDetail queryAccountDetailByTime(String customerId, Date startDate, Date endDate) {
		
		return accountDetailDao.queryAccountDetailByTime(customerId, startDate, endDate);
	}

	@Override
	public AccountDetail queryModelByServiceId(String serviceId) {
		
		return accountDetailDao.queryModelByServiceId(serviceId);
	}

	@Override
	public List<AccountDetail> queryAccountList(
			FindAccountDetail findAccountDetail, String custId, Integer start,Integer length) {
		
		return accountDetailDao.queryAccountList(findAccountDetail, custId, start, length);
	}

	/*@Override
	public AccountDetail querySumIncome(FindAccountDetail findAccountDetail,
			String id, Integer start, Integer length) {
		
		return accountDetailDao.querySumIncome(findAccountDetail, id, start, length);
	}

	@Override
	public AccountDetail querySumExpend(FindAccountDetail findAccountDetail,
			String id, Integer start, Integer length) {
		
		return accountDetailDao.querySumExpend(findAccountDetail, id, start, length);
	}*/
	
	
}